import { _decorator, Component, JsonAsset, Node, resources, Texture2D } from 'cc';
import MapData from './MapData';
const { ccclass, property } = _decorator;

export class SceneData {
    public currentMapId: string = '';

    public enterSpawnId: number = 0;

    public mapLoadModel: number = 0;

    public mapData: MapData = null;

    public bgTex: Texture2D = null;
}


@ccclass('WorldManager')
export default class WorldManager extends Component{

    public sceneData: SceneData = new SceneData();

    protected loadSlicesMap() {
        var mapName: string = this.sceneData.currentMapId;
        var mapFilePath: string = `content/map/${mapName}/${mapName}`;
        resources.load(mapFilePath, JsonAsset)
    }
}

